package com.youbug.recreation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.youbug.common.config.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.websocket.Session;

/**
 * <p>
 * 玩家
 * </p>
 *
 * @author youbug
 * @since 2023-07-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="GamePlayer对象", description="玩家")
public class GamePlayer extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "游戏名")
    private String gameName;

    @ApiModelProperty(value = "房间ID")
    private Long roomId;

    @TableField(exist = false)
    private Session session;
}
